<?php $this->load->view(TEMPLATE_NAME.'/admin/header');?>

<?php $this->load->view(TEMPLATE_NAME.'/admin/side_left');?>

<link rel="stylesheet" type="text/css" media="all" href="<?php echo base_url()?>xhtml/admin/css/tia.css" />

<script type="text/javascript" src="<?php echo base_url()?>js/jquery-1.4.2.js"></script>

<script type="text/javascript" src="<?php echo base_url()?>js/jquery.validate.pack.js"></script>

<div class="page noright adminpage">

<h5 class="purple">The Mykprisguide Print - Design Directory</h5>

<hr />

<?php $this->load->view(TEMPLATE_NAME.'/admin/directory/directory_admin_header');?>

<hr />

<?php $this->load->view(TEMPLATE_NAME.'/admin/directory/directory_admin_editlisting_header');?> 

<hr />

<div class="wright">

<?php if(!empty($notification)){ ?>

<p class="inform f12 error_message"><?php echo $notification ?></p>

<?php } ?>


<?php /*?><p class="f13">Select the products, services or brands that you represent form the list below. If you would like something added to any of these lists, simply send us an e-mail at <a href="#">directory@crimeaware.co.za</a></p><hr /><?php */?>



<?php 

$last_seg = $this->uri->uri_to_assoc(4);



$action = 'admin/design_directory/products/id/'.$company['id'].'/service/'.$last_seg['service'];

 

$attributes = array('class' => 'dirad', 'id' => 'myform');

echo form_open($action,$attributes);?>

<?php if(!empty($products_list)){ ?>

   

    <div class="ncb1 ncb">

        <?php foreach($products_list as $key=>$value){ ?>

        <p class="cb"><input type="checkbox" name="services[]"

        <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 

        value="<?php echo $value['id'] ?>"> <?php echo $value['name'] ?></p>

        <?php } ?>

    </div><!-- bright -->

    <div class="clear"></div>

    <!--<hr>-->

<?php } ?>

<?php if(!empty($services_list_print)){ ?>

    <!-- bleft -->

    <div class="ncb ncb1">

        <p class="f17 purple1"><b>Print Design</b></p>
        <?php foreach($services_list_print as $key=>$value){ ?>

        <p class="cb" style="background:none"><input type="checkbox" name="services[]" 

        <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 

        value="<?php echo $value['id'] ?>"><?php echo $value['name'] ?></p>

        <?php } ?>

    </div><!-- bright -->

    <div class="clear"></div>
    
    <div class="ncb1 ncb">

        <p class="f17 purple1"><b>Web Design</b></p>
        <?php foreach($services_list_web as $keys=>$vals){ ?>

        <p class="cb"><input type="checkbox" name="services[]" 

        <?php if(in_array($vals['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 

        value="<?php echo $vals['id'] ?>"><?php echo $vals['name'] ?></p>

        <?php } ?>

    </div><!-- bright -->

    <div class="clear"></div>

    <!--<hr>-->

<?php } ?>

<?php if(!empty($brands_list)){ ?>

  

    <div class="ncb1 ncb">

        <?php foreach($brands_list as $key=>$value){ ?>

        <p class="cb"><input type="checkbox" name="services[]" 

        <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 

        value="<?php echo $value['id'] ?>"><?php echo $value['name'] ?></p>

        <?php } ?>

    </div><!-- bright -->

    <div class="clear"></div>

<?php } ?>

<form>
<div class="line"></div>
<div class="">

<?php 

$form_button = array(

  'type'=>'submit',

  'name'=>'submit',

  'value'=>'submit',

  'content'=>'Submit',

);

echo form_button($form_button) ?>

</div><!-- bright -->

<div class="clear"></div>

</div><!-- box -->

</form>

</div><!-- wright -->

</div><!-- page -->

<?php $this->load->view(TEMPLATE_NAME.'/admin/footer');?>